cmake_minimum_required(VERSION 3.10)
project(Socket_Chat)
set(CMAKE_CXX_STANDARD 17)
find_package(Threads REQUIRED) 
add_executable( UdpClient UdpClient.cpp)
add_executable(UdpServer UdpServer.cpp )

#target_link_libraries(UdpServer PRIVATE Threads::Threads)
target_link_libraries(UdpClient PRIVATE Threads::Threads)


set_target_properties(UdpClient PROPERTIES
    LINK_FLAGS "-static"
)
